package com.iptech.example.client;


import com.gargoylesoftware.htmlunit.javascript.host.Window;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.validation.client.constraints.AbstractDigitsValidator;
import com.iptech.example.client.widgets.ButtonGroup;
import com.iptech.gxt.widget.core.client.event.PinEvent;
import com.iptech.gxt.widget.core.client.event.PinEvent.PinHandler;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Example implements IsWidget, EntryPoint {
	

	  private VerticalPanel vp;
	  private com.iptech.gxt.widget.core.client.ApplicationTabPanel advanced;
	 
	  public Widget asWidget() {
	    if (vp == null) {
	      vp = new VerticalPanel();
	      vp.setSpacing(10);
	 
	      advanced = new com.iptech.gxt.widget.core.client.ApplicationTabPanel();
	      advanced.setPixelSize(600, 250);
	      advanced.setCloseContextMenu(true);
	      advanced.setPinAsApplicationTabMenu(true);
	      advanced.setApplicationTabTooltip(false);
	      
	      advanced.setTabScroll(true);
	      advanced.setAnimScroll(true);
	      
	     
	      
	      ButtonGroup btnGrp = new ButtonGroup(advanced);
	      vp.add(btnGrp.asWidget());
	 
	 
	      vp.add(advanced);
	      
	     
	      
	    }
	    return vp;
	  }
	 
	  public void onModuleLoad() {
	    RootPanel.get().add(asWidget());
	  }
}
